import axios from "@/http/http.js";
// 封装创建处方接口
export const prescriptionAddOrUpdateAPI = (data) => {
    return axios({
        url: '/prescription/addOrUpdatePrescription',
        method: 'post',
        data
    })
};

// 封装根据病历ID查询处方接口
export const prescriptionFindByHistoryIdAPI = (data) => {
    return axios({
        url: '/prescription/findPrescriptionByHistoryId',
        method: 'post',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};